package com.study.zzedu.fragment.home.qualityedu;

import android.content.Context;

import com.study.zzedu.base.BasePresenter;
import com.study.zzedu.base.BaseView;
import com.study.zzedu.http.OnResultListener;

public class QualityEduPresenter extends BasePresenter<BaseView> {
    private QualityEduModel tModel;
    public QualityEduPresenter(){
        this.tModel = new QualityEduModel();
    }

    public void queryMyQualityEducationList(Context context){
        tModel.queryMyQualityEducationList(context,new OnResultListener() {
            @Override
            public void onSuccess(String result) {
                getView().getData(result);
            }

            @Override
            public void onError(String error) {
                getView().showError(error);
            }
        });
    }
}
